package ch03.Shili.test;

import ch03.Shili.dao.NewsDao;
import ch03.Shili.factory.SimpleDaoFactory;
import ch03.Shili.service.impl.NewsServiceImpl;

public class Shili4 {
    public static void main(String[] args) {
        NewsDao dao = SimpleDaoFactory.getInstance("mysql");
        NewsServiceImpl service = new NewsServiceImpl();
        service.setDao(dao);
    }
}
